<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String basePath=request.getScheme()+"://"+request.getServerName()+":"
            +request.getServerPort()+request.getContextPath()+"/";
%>
<html>
<head>
    <title>班费收支统计功能</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"rel="stylesheet">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <style type="text/css">
        .col-center-block {
            float: none;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
        /*    a {*/
        /*  text-decoration: none;*/
        /*  color: black;*/
        /*  font-size: 18px;*/
        /*}*/
        /*h3 {*/
        /*  width: 180px;*/
        /*  height: 38px;*/
        /*  margin: 100px auto;*/
        /*  text-align: center;*/
        /*  line-height: 38px;*/
        /*  background: deepskyblue;*/
        /*  border-radius: 4px;*/
        /*}*/
    </style>
</head>
<body>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#example-navbar-collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">管理员模块</a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="<%=basePath%>book/allBook">项目资金筹集统计</a></li>
                <li><a href="<%=basePath%>buuk/allBuuk">班费筹集立项与发布</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        班费收支统计 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="<%=basePath%>income/allIncome">收入清单列表页</a></li>
                        <li class="divider"></li>
                        <li><a href="<%=basePath%>outcome/allOutcome">支出清单列表页</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

</div>

<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>项目资金筹集统计</small>
                </h1>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/book/toAddBook">新增</a>

        </div>
    </div>

    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>筹款事由</th>
                    <th>目标额度</th>
                    <th>当前筹集</th>
                    <th>筹集状态</th>
                    <th>筹集时长</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="book" items="${list}">
                    <tr>
                        <td>${book.bookReason}</td>
                        <td>${book.bookID}</td>
                        <td>${book.bookCounts}</td>
                        <td>${book.bookName}</td>
                        <td>${book.detail}</td>
                        <td>

                            <a href="${pageContext.request.contextPath}/book/del/?id=${book.bookID}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <div class="row">
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/qd/addQD">点击设置资金清单</a>
            <a class="btn btn-default" href="${pageContext.request.contextPath}/index.jsp">返回</a>
        </div>
    </div>
</div>

</body>
</html>
